function toast(title, duration = 1500) {
  if (uni.showToast){
    uni.showToast({
      title: title,
      icon: 'none',
      duration: duration
    })
  }else{
    document.getElementById("#app").append("<>")
  }
}

export default toast
